package datatype.searchtype;

import java.util.List;

public class SearchResult {

	// all the search info are here

	private List<MediaRes> FilmRes = null;
	private List<MediaRes> programRes = null;
	private List<PersonRes> actorRes = null;
	private List<PersonRes> creatorRes = null;
	private List<PersonRes> directorRes = null;
	
	
	

	public SearchResult(List<MediaRes> filmRes, List<MediaRes> programRes,
			List<PersonRes> actorRes, List<PersonRes> creatorRes,
			List<PersonRes> directorRes) {
		super();
		FilmRes = filmRes;
		this.programRes = programRes;
		this.actorRes = actorRes;
		this.creatorRes = creatorRes;
		this.directorRes = directorRes;
	}

	public synchronized List<MediaRes> getFilmRes() {
		return FilmRes;
	}

	public synchronized void setFilmRes(List<MediaRes> filmRes) {
		FilmRes = filmRes;
	}

	public synchronized List<MediaRes> getProgramRes() {
		return programRes;
	}

	public synchronized void setProgramRes(List<MediaRes> programRes) {
		this.programRes = programRes;
	}

	public synchronized List<PersonRes> getActorRes() {
		return actorRes;
	}

	public synchronized void setActorRes(List<PersonRes> actorRes) {
		this.actorRes = actorRes;
	}

	public synchronized List<PersonRes> getCreatorRes() {
		return creatorRes;
	}

	public synchronized void setCreatorRes(List<PersonRes> creatorRes) {
		this.creatorRes = creatorRes;
	}

	public synchronized List<PersonRes> getDirectorRes() {
		return directorRes;
	}

	public synchronized void setDirectorRes(List<PersonRes> directorRes) {
		this.directorRes = directorRes;
	}

	/**
	 * @author Yuval
	 * 
	 */
	public static class MediaRes {

		private int id = 0;
		private String name = null;
		private int releaseYear = 0;

		public MediaRes(int id, String name, int releaseYear) {
			super();
			this.id = id;
			this.name = name;
			this.releaseYear = releaseYear;
		}

		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public int getReleaseYear() {
			return releaseYear;
		}

		public void setReleaseYear(int releaseYear) {
			this.releaseYear = releaseYear;
		}

	}

	public static class PersonRes {

		private int id = 0;
		private String name = null;
		private String knownFor = null;

		public PersonRes(int id, String name, String knownFor) {
			super();
			this.id = id;
			this.name = name;
			this.knownFor = knownFor;
		}

		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getKnownFor() {
			return knownFor;
		}

		public void setKnownFor(String knownFor) {
			this.knownFor = knownFor;
		}

	}

}
